const APIS_VOL_MANAGE = {

    // 志愿者增删查改
    VOLLIST: {
        url: '/volunteers/list',
        method: 'post'
    },
    // 添加
    APPENDVOL: {
        url: '/volunteers',
        method: 'post'
    },

    // 编辑
    EDITVOL: {
        url: '/volunteers',
        method: 'put'
    },

    // 删除
    DELETEVOL: (id) => ({
        url: `/volunteers/${id}`,
        method: 'delete'
    }),

    //志愿活动增删查改
    ACTIVELIST: {
        url: '/volunteers/activities/list',
        method: 'post'
    },

    // 志愿活动添加
    APPENDACTIVE: {
        url: '/volunteers/activities',
        method: 'post'
    },

    EDITACTIVE: {
        url: '/volunteers/activities',
        method: 'put'
    },

    DELETEACTIVE: (id) => ({
        url: `/volunteers/activities/${id}`,
        method: 'delete'
    })

};

export default APIS_VOL_MANAGE;